package summer_vacation.liqing;

import java.io.IOException;

/**
 * Created by 123456 on 2015/8/7.
 */
import java.io.IOException;
public class Assignment_3 {
    public static void main(String[] args) {
        char ch = 0;
        int a[] = new int[100];
        try {
            int i = 0;
            System.out.println("请输入一个字符，以'#'结束");
            do {
                ch = (char) System.in.read();
                i++;
                a[i - 1] = ch;
            } while (ch != '#');
            int min = (int) a[0];
            for (int j = 0; j < 1; j++) {
                if (min > (int) a[j]) {
                }
            }
                System.out.println("字母序最小的字符为：" + min);
            }catch(IOException e){}
            }
        }






